package com.wxyzz.cem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wxyzz.cem.pojo.dto.UserDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 缴费记录
 * </p>
 *
 * @author xc
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PaymentRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 缴费记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 缴费时间
     */
    private Timestamp time;

    /**
     * 缴费前班费金额
     */
    private Float beforeClassBalance;

    /**
     * 缴费用户ID
     */
    private Integer userId;

    /**
     * 缴费项目ID
     */
    private Integer paymentProjectId;

    /**
     * 缴费二维码截图
     */
    private String imageName;

    /**
     * 班级ID
     */
    private Integer classId;
    /**
     * 用户信息
     */
    @TableField(exist = false)
    private User user;
    /**
     * 缴费项目信息
     */
    @TableField(exist = false)
    private PaymentProject paymentProject;

}
